<?php
define('InEmpireBakData',TRUE);
require("../../inc/header.php");

/*
		SoftName : EmpireBak Version 5.1
		Author   : wm_chief
		Copyright: Powered by www.phome.net
*/

DoSetDbChar('utf8');
E_D("DROP TABLE IF EXISTS `jzb_model`;");
E_C("CREATE TABLE `jzb_model` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '模型ID',
  `name` char(30) NOT NULL DEFAULT '' COMMENT '模型标识',
  `title` char(30) NOT NULL DEFAULT '' COMMENT '模型名称',
  `extend` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '继承的模型',
  `relation` varchar(30) NOT NULL DEFAULT '' COMMENT '继承与被继承模型的关联字段',
  `need_pk` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '新建表时是否需要主键字段',
  `field_sort` text NOT NULL COMMENT '表单字段排序',
  `field_group` varchar(255) NOT NULL DEFAULT '1:基础' COMMENT '字段分组',
  `attribute_list` text NOT NULL COMMENT '属性列表（表的字段）',
  `template_list` varchar(100) NOT NULL DEFAULT '' COMMENT '列表模板',
  `template_add` varchar(100) NOT NULL DEFAULT '' COMMENT '新增模板',
  `template_edit` varchar(100) NOT NULL DEFAULT '' COMMENT '编辑模板',
  `list_grid` text NOT NULL COMMENT '列表定义',
  `list_row` smallint(2) unsigned NOT NULL DEFAULT '10' COMMENT '列表数据长度',
  `search_key` varchar(50) NOT NULL DEFAULT '' COMMENT '默认搜索字段',
  `search_list` varchar(255) NOT NULL DEFAULT '' COMMENT '高级搜索的字段',
  `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  `update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  `status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  `engine_type` varchar(25) NOT NULL DEFAULT 'MyISAM' COMMENT '数据库引擎',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='文档模型表'");
E_D("replace into `jzb_model` values('1',0x646f63756d656e74,0xe59fbae7a180e69687e6a1a3,'0','','1',0x7b2231223a5b2231222c2232222c2233222c2234222c2235222c2236222c2237222c2238222c2239222c223130222c223131222c223132222c223133222c223134222c223135222c223136222c223137222c223138222c223139222c223230222c223231222c223232225d7d,0x313ae59fbae7a180,'','','','',0x69643ae7bc96e58fb70d0a7469746c653ae6a087e9a2983a61727469636c652f696e6465783f636174655f69643d5b63617465676f72795f69645d267069643d5b69645d0d0a747970657c6765745f646f63756d656e745f747970653ae7b1bbe59e8b0d0a6c6576656c3ae4bc98e58588e7baa70d0a7570646174655f74696d657c74696d655f666f726d61743ae69c80e5908ee69bb4e696b00d0a7374617475735f746578743ae78ab6e680810d0a766965773ae6b58fe8a7880d0a69643ae6938de4bd9c3a5b454449545d26636174655f69643d5b63617465676f72795f69645d7ce7bc96e8be912c61727469636c652f7365747374617475733f7374617475733d2d31266964733d5b69645d7ce588a0e999a4,'0','','','1383891233','1384507827','1',0x4d794953414d);");
E_D("replace into `jzb_model` values('2',0x61727469636c65,0xe69687e7aba0,'1','','1',0x7b2231223a5b2233222c223234222c2232222c2235225d2c2232223a5b2239222c223133222c223139222c223130222c223132222c223136222c223137222c223236222c223230222c223134222c223131222c223235225d7d,0x313ae59fbae7a1802c323ae689a9e5b195,'','','','',0x69643ae7bc96e58fb70d0a7469746c653ae6a087e9a2983a61727469636c652f656469743f636174655f69643d5b63617465676f72795f69645d2669643d5b69645d0d0a636f6e74656e743ae58685e5aeb9,'0','','','1383891243','1387260622','1',0x4d794953414d);");
E_D("replace into `jzb_model` values('3',0x646f776e6c6f6164,0xe4b88be8bdbd,'1','','1',0x7b2231223a5b2233222c223238222c223330222c223332222c2232222c2235222c223331225d2c2232223a5b223133222c223130222c223237222c2239222c223132222c223136222c223137222c223139222c223131222c223230222c223134222c223239225d7d,0x313ae59fbae7a1802c323ae689a9e5b195,'','','','',0x69643ae7bc96e58fb70d0a7469746c653ae6a087e9a298,'0','','','1383891252','1387260449','1',0x4d794953414d);");
E_D("replace into `jzb_model` values('5',0x696e666f726d6174696f6e,0xe4bebfe6b091e4bfa1e681af,'0','','1','',0x313ae59fbae7a180,'','','','','','10','','','1471167111','1471167111','1',0x4d794953414d);");

require("../../inc/footer.php");
?>